
#ifndef HTTP__H
#define HTTP__H
#include "Request.h"
#include "memory"
#include <sys/epoll.h>
#include "../../url/include/url.h"
#include "Response.h"

class HTTP{
private:
    RequestHead ReqHead;
public:
    int client_fd; // 请求的文件描述符
    int epfd;  // epoll 的描述符
    struct epoll_event *event;  // epfd 的 event
    HTTP(int fd,int _epfd,struct epoll_event* _event):client_fd(fd),epfd(_epfd),event(_event){};
    int reuqest(std::shared_ptr<RequestHead>& head);
};

#endif